package cn.wolfcode.mapper;

import cn.wolfcode.domain.Emp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface EmpMapper {

    List<Emp> list(@Param("name") String name, @Param("gender") Integer gender, @Param("begin") Date begin, @Param("end") Date end);


    void batchDelete(List<Long> ids);

    void save(Emp emp);

    Emp selById(Long id);

    void update(Emp emp);

    Emp login(Emp emp);
}
